module.exports = {
    pages: {
        index: {
            // page 的入口
            entry: 'src/main.js',
            // 模板来源
            template: 'public/index.html',
        }
    },
    lintOnSave: false,
    devServer: {
        proxy: {
            '/students': {
                target: "http://localhost:5000",
                pathRewrite: {'^/students' : ''},
                changeOrigin: true
            },
            '/cars': {
                target: "http://localhost:5001",
                pathRewrite: {'^/cars' : ''},
                changeOrigin: true
            }
        }
    }
}